{% extends 'goodies/main2.html'%}
{% block content %}
<td width="100%">
  <div style="width: 0px; height: 11px"><spacer type="block" height="11"></spacer></div>
  <!-- text -->
  <span class="zag">История заказов</span>
  <br><br>


  <span class="author">Номер заказа: {{order.pk}}</span>
  <br><br>

  <table width="100%" border="0" cellspacing="1" cellpadding="5" bgcolor="#e5e5e5">
    <tbody><tr align="center" bgcolor="#005091">
      <td class="bmenu" width="60%">Название</td>
      <td class="bmenu" width="40%">Стоимость ед. товара, руб.</td>
    </tr>
    {% for item in goodies %}
    <tr bgcolor="#ffffff">
      <td>
        <a href="/main/category/">{{item.author}}: {{item.name}}</a>
      </td>
      <td>{{item.price}}</td>
    </tr>
    
    <tr bgcolor="#ffffff">
      <td align="right">Итого:</td>
      <td><b>{{total_sum}}</b></td>
    </tr>
    {% endfor %}
    
    <tr bgcolor="#ffffff">
      <td align="right" colspan="2"><a href="/personal/history">История заказов</a></td>
    </tr>

  </tbody></table>

  <!-- /text -->
</td>
{% endblock content %}